package com.skywolf.chem.match.entity;

import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDateTime;

import com.skywolf.chem.common.sysconfig.pojo.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 退款子订单表
 * </p>
 *
 * @author
 * @since 2021-10-09
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("match_refund_order")
@ApiModel(value = "RefundOrder对象", description = "退款子订单表")
public class RefundOrder extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "父订单号")
    private String parentOrderSn;

    @ApiModelProperty(value = "父订单号")
    private Long parentOrderId;

    @ApiModelProperty(value = "订单号")
    private String orderSn;

    @ApiModelProperty(value = "商户退款单号")
    private String outRefundNo;

    @ApiModelProperty(value = "微信退款单号")
    private String refundId;

    @ApiModelProperty(value = "退款成功时间")
    private LocalDateTime refundSuccessTime;

    @ApiModelProperty(value = "退款状态  0退款关闭  1成功  2退款异常，退款到银行发现用户的卡作废或者冻结了，导致原路退款银行卡失败，可前往【商户平台—>交易中心】，手动处理此笔退款 3微信退款中")
    private Integer refundStatus;

    @ApiModelProperty(value = "退款方【1->微信jsapi；2->支付宝】")
    private Integer refundPayType;

    @ApiModelProperty(value = "退款金额（分)")
    private Long refundPrice;

    @ApiModelProperty(value = "退款报名人编号")
    private Long applyUserId;
}
